import java.util.Scanner;
public class Text {
    public static void main(String[] args) {
        func();
    }

    public static void func() {
        int[] arr1 = new int[3];
        arr1[0] = 10;
        arr1[1] = 20;
        arr1[2] = 30;

        int[] arr2 = new int[]{1,2,3,4,5};
        arr2[0] = 100;
        arr1[1] = 200;

        arr1 = arr2;
        arr1[2] = 300;
        arr1[3] = 400;
        arr2[4] = 500;
        for(int x : arr2) {
            System.out.println(x);
        }
    }
    public static void main2(String[] args) {
        String[] arr = new String[10];
        int[] arry = {1,2,3,4,5};
        System.out.println(arry[0]);
        System.out.println(arry[1]);
        System.out.println(arry[2]);
        System.out.println(arry[3]);
        System.out.println(arry[4]);
        for (int i = 0; i < arry.length; i++) {
            System.out.println(arry[i]);
        }
        for(int x : arry) {
            System.out.println(x);
        }
    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            Data data = new Data(x, y);
            System.out.println(data.getX() + data.getY());
        }
    }
}
class Data {
    private int x;
    private int y;
    public Data(int x, int y) {
        this.x = x;
        this.y = y;
    }
    public int getX() {
        return x;
    }
    public int getY() {
        return y;
    }
}

//public static func() {
//    int a = 10;
//    int b = 20;
//    int[] arr = {1,2,3};
//}